package com.apress.springrecipes.shop;

import java.util.Date;

import org.springframework.context.ApplicationEvent;

@SuppressWarnings("serial")
public class CheckoutEvent extends ApplicationEvent {
	private double amount;
	private Date time;

	public CheckoutEvent(Object source, double amount, Date time) {
		super(source);
		this.amount = amount;
		this.time = time;
	}

	public double getAmount() {
		return amount;
	}

	public Date getTime() {
		return time;
	}
}
